#ifndef _NGX_ARRAY_H_INCLUDED_
#define _NGX_ARRAY_H_INCLUDED_


//typedef unsigned int size_t;

typedef struct array_s array_t;

struct array_s {
    void        *elts;
    size_t       nelts;
    size_t       size;
    size_t       nalloc;
    pool_t       *pool;
};

#ifdef __cplusplus
extern "C" {
#endif

array_t *array_create(pool_t *p, size_t n, size_t size);
void array_destroy(array_t *a);
void *array_push(array_t *a);
void *array_push_n(array_t *a, size_t n);

#ifdef __cplusplus
}
#endif



#endif /* _NGX_ARRAY_H_INCLUDED_ */
